package com.fatiny.core.db.po;

import java.util.List;

import com.google.common.collect.Lists;

public class Entity<V>{
	
	protected String entityName;// 实体名
	protected List<V> entityBeans;// 实体内属性
	
	public Entity() {
		this.entityBeans = Lists.newArrayList();
	}
	public Entity(String entityName) {
		this.entityName = entityName;
		this.entityBeans = Lists.newArrayList();
	}
	public Entity(String entityName, List<V> entityBeans) {
		super();
		this.entityName = entityName;
		this.entityBeans = entityBeans;
	}
	public String getEntityName() {
		return entityName;
	}
	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}
	public List<V> getEntityBeans() {
		return entityBeans;
	}
	public void setEntityBeans(List<V> entityBeans) {
		this.entityBeans = entityBeans;
	}
	public void addEntityBeans(V entityBean) {
		this.entityBeans.add(entityBean);
	}
	
	@Override
	public String toString() {
		return "Entity [entityName=" + entityName + ", entityBeans=" + entityBeans + "]";
	}
	
}
